package com.zwp.common.di

import com.zwp.common.repository.WanService
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object WanModule {

    @Provides
    @Singleton
    fun providerWanService(retrofit: Retrofit) =
        retrofit.create(WanService::class.java)
}